﻿using LinqToDB.Mapping;

namespace ggHD.Domain.BizObj
{
    [Table(Schema = "dbo", Name = "webpages_UsersInRoles")]
    public partial class webpages_UsersInRole
    {
        [PrimaryKey(1), NotNull]
        public int UserId { get; set; } // int
        [PrimaryKey(2), NotNull]
        public int RoleId { get; set; } // int

        #region Associations

        /// <summary>
        /// fk_UserId
        /// </summary>
        [Association(ThisKey = "UserId", OtherKey = "UserId", CanBeNull = false)]
        public UserProfile fkUserId { get; set; }

        /// <summary>
        /// fk_RoleId
        /// </summary>
        [Association(ThisKey = "RoleId", OtherKey = "RoleId", CanBeNull = false)]
        public UserRoles fkRoleId { get; set; }

        #endregion
    }
}